import request from '@/utils/request'
//回货入库单列表
export const getBackwarehouseorderList=(query)=>{
  return request ({
    url:'/module/returnReceiptOrder/list',
    method:"get",
    params:query
  })
}
//回货入库单详情
export  const getBackwarehouseInfoApi=(id)=>{
  return request({
    url:'/module/returnReceiptOrder/'+id,
    method:'get',

  })
}
//新增
export  const addBackwarehouseApi=(data)=>{
  return request({
    url:'/module/returnReceiptOrder',
    method:'POST',
    data,
  })

}
// 修改
export  const editBackwarehouseApi=(data)=>{
  return request({
    url:"/module/returnReceiptOrder",
    method:'PUT',
    data,
  })
}
//删除
export const delBackwarehouseApi=(id)=>{
  return request({
    url:'/module/returnReceiptOrder/'+id,
    method:'delete'
  })
}
// 回货入库单编号
export const getReturnApplyApi=(query)=>{
  return request({
    url:'/module/returnApply/childList',
    method:'get',
  params:query,
  })
}

